x11/surface: Remember when there is a pending ConfigureNotify
authorJonas Ådahl <jadahl@gmail.com>
Sat, 5 Dec 2020 10:02:58 +0000 (11:02 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:29 +0000 (20:37 +0100)
This will be used to decide whether to try to resize windows when .

gdk/x11/gdkdisplay-x11.c
gdk/x11/gdksurface-x11.c
gdk/x11/gdksurface-x11.h

index 73529906c5d7bd7bacf24a2aef15ff97b5789404..31b06ea53fcdc1d508c4d054ecaaa18c6e75f0e2 100644 (file)
@@ -964,6 +964,7 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator,
               surface_impl->next_layout.configured_width = configured_width;
               surface_impl->next_layout.configured_height = configured_height;
               surface_impl->next_layout.surface_geometry_dirty = TRUE;
+              surface_impl->next_layout.configure_pending = TRUE;
               gdk_surface_request_layout (surface);
             }
 
index 5e0fc557d81b40bfd0addb2aedcfc0e3493b1962..0348e9b85bf4af389449fcd4541c51b2c11268e4 100644 (file)
@@ -341,6 +341,7 @@ gdk_x11_surface_compute_size (GdkSurface *surface)
       _gdk_x11_surface_update_size (impl);
 
       impl->next_layout.surface_geometry_dirty = FALSE;
+      impl->next_layout.configure_pending = FALSE;
     }
   else
     {
index 6fd7122ba03d9038d1188606c9dfe0421858143b..994d1250360d79129c2645cd9c14f12ca795b64e 100644 (file)
@@ -75,6 +75,7 @@ struct _GdkX11Surface
   struct {
     int configured_width;
     int configured_height;
+    gboolean configure_pending;
     gboolean surface_geometry_dirty;
   } next_layout;